package Test1;

public class StringBuilderDemo1 {
    public static void main(String[] args) {
        StringBuilder sb = new StringBuilder("666");
        //添加元素
        sb.append(4);

        //直接进行反转
        sb.reverse();

        //获取长度
        int len = sb.length();
        System.out.println(len);
        //打印对象不是地址值而是属性值
        System.out.println(sb);
    }
}
